
/**
 *
 * @author Airlangga
 */
public class Car {

    private int xPos;
    private int yPos;
    private char direction;

    /** car constructor*/
    public Car(int x, int y, char dir) {
        xPos = x;
        yPos = y;
        direction = dir;

    }

    /** get the x coordinate of the cars*/
    public int getXPos() {
        return xPos;
    }

    /** get the y coordinate of the cars*/
    public int getYPos() {
        return yPos;
    }

    /** set the x coordinate of the cars*/
    public void setXPos(int x) {
        xPos = x;
    }

    /** set the y coordinate of the cars*/
    public void setYPos(int y) {
        yPos = y;
    }

    /** get direction of the cars*/
    public char getDirection() {
        return direction;
    }
}
